import React, { PureComponent } from 'react'

class ueditorSimpleUpload extends PureComponent{
    constructor(props){
        super(props)
        this.state={
            json:''
        }
    }
    render(){
        let { json } = this.state;
        return(
            <div>
                {json}
            </div>
        );
    }
    componentDidMount(){
        let state = this.props.match.params.state;
        let date = this.props.match.params.date;
        let name = this.props.match.params.name;
        let json = '{"state":"'+state+'","url":"/uploads/ueditor/image/'+date+'/'+name+'"}';
        this.setState({
            json
        })
    }
}

export default ueditorSimpleUpload;